<style type="text/css">
    input[type=text]{
        width: 200px;
        background: url("<?php echo URL::base() . 'media/images/textbox.jpg' ?>") no-repeat transparent;
        border: none;
    }
    select{
        width: 200px;
    }
    label{
        font-weight:bold;
    }
</style>
<?php if ($active->id == NULL): ?>
    <center><h1>Nincs meghírdetett találkozó!</h1></center>
<?php else : ?>
    <b>Aktuális találkozó:</b> <a href="<?php echo URL::site('meetings/show/' . $active->id, TRUE, FALSE) ?>"><?php echo $active->name ?></a><br/>
    <b>Időpont:</b> <?php echo substr($active->date, 0, 16) ?><br/>
    <b>Jelentkezési határidő:</b> <?php echo substr($active->sub_date, 0, 16) ?><br/><br/>
    <?php $date = date('Y-m-d H:i:s') ?>
    <?php echo $participate->body ?>
    <center>
        <?php if ($date < $active->sub_date): ?>
            <fieldset>
                <legend>Jelentkezés</legend>
                <table>
                    <?php echo form::open('meetings/participate', array('id' => 'participate_form')) ?>
                    <tr>
                        <td><label for="teamname">Csapatnév</label></td>
                        <td><?php echo form::input("teamname", NULL, array("id" => "teamname")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="email">E-mail</label></td>
                        <td><?php echo form::input("email", NULL, array("id" => "email")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="phone">Telefon</label></td>
                        <td><?php echo form::input("phone", NULL, array("id" => "phone")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="system">Rendszer</label</td>
                        <td><?php echo form::select("system", array("ETK" => "Első Törvénykönyv (ETK)", "UTK" => "Új Törvénykönyv (ÚTK)")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="member_1">Csapattagok</label></td>
                        <td><?php echo form::input("member_1", NULL, array("id" => "memeber_1")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="member_2"></label></td>
                        <td><?php echo form::input("member_2", NULL, array("id" => "memeber_2")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="member_3"></label></td>
                        <td><?php echo form::input("member_3", NULL, array("id" => "memeber_3")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="member_4"></label></td>
                        <td><?php echo form::input("member_4", NULL, array("id" => "memeber_4")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="member_5"></label></td>
                        <td><?php echo form::input("member_5", NULL, array("id" => "memeber_5")) ?></td>
                    </tr>
                    <tr>
                        <td><label for="member_6"></label></td>
                        <td><?php echo form::input("member_6", NULL, array("id" => "memeber_6")) ?></td>
                    </tr>
                    <tr>
                        <td colspan="2"><label for="comment">Megjegyzés, üzenet:</label></td>
                    </tr>
                    <tr>
                        <td colspan="2"><?php echo form::textarea("comment") ?></td>
                    </tr>
                    <tr>
                        <td colspan="2"><center><?php echo form::submit("register", "Jelentkezés", array("onClick" => "checkdata()")) ?></center></td>
                    </tr>
                    <?php echo form::close() ?>
                    <script type="text/javaScript">
                        checkdata(document.forms["participate_form"]);
                    </script>

                </table>
            </fieldset>
        <?php else : ?>
            <h2>A jelentkezési határidő lejárt!</h2>
        <?php endif ?>
    </center>
<?php endif ?>